<?php
    session_start();
    include('top.php');
    include('../sql.php');
    $id = $_GET['id'];
    $detail = "select * from user where id = $id";
    $detail_result = $link->query($detail);
    $detail_row = mysqli_fetch_array($detail_result);
?>
<div class="home-container-body">
    <?php include('nav.php'); ?>
</div>

<div class="admin_hone-content">
    <table width="100%">
        <tr>
            <td>姓名</td>
            <td><?php echo $detail_row['name']; ?></td>
            <td rowspan="2"><img src="<?php echo '/' . $detail_row['photo']; ?>" /></td>
        </tr>
        <tr>
            <td>证件号</td>
            <td><?php echo $detail_row['number']; ?></td>
        </tr>
        <tr>
            <td>身份证正面</td>
            <td colspan="2"><img src="<?php echo '/' . $detail_row['cardz']; ?>" /></td>
        </tr>
        <tr>
            <td>身份证反面</td>
            <td colspan="2"><img src="<?php echo '/' . $detail_row['cardf']; ?>" /></td>
        </tr>
        <tr>
            <td>报名申请表图片</td>
            <td colspan="2"><img src="<?php echo '/' . $detail_row['sqb']; ?>" /></td>
        </tr>
        <tr>
            <td>承诺书图片</td>
            <td colspan="2"><img src="<?php echo '/' . $detail_row['cns']; ?>" /></td>
        </tr>
        <tr>
            <td>学历验证报告单</td>
            <td colspan="2"><a href="<?php echo '/' . $detail_row['bgd']; ?>"><?php echo $detail_row['bgd']; ?></a></td>
        </tr>
        <tr>
            <td>本科阶段成绩单</td>
            <td colspan="2"><a href="<?php echo '/' . $detail_row['cjd']; ?>"><?php echo $detail_row['cjd']; ?></a></td>
        </tr>
        <tr>
            <td>手机号码</td>
            <td colspan="2"><?php echo $detail_row['telephone']; ?></td>
        </tr>
        <tr>
            <td>邮寄地址</td>
            <td colspan="2"><?php echo $detail_row['address']; ?></td>
        </tr>
        <tr>
            <td>邮箱地址</td>
            <td colspan="2"><?php echo $detail_row['mail']; ?></td>
        </tr>
        <tr>
            <td>准号证号</td>
            <td colspan="2"><?php echo $detail_row['exnumber']; ?></td>
        </tr>
        <tr>
            <td>毕业院校</td>
            <td colspan="2"><?php echo $detail_row['school']; ?></td>
        </tr>
        <tr>
            <td>毕业年份</td>
            <td colspan="2"><?php echo $detail_row['years']; ?></td>
        </tr>
        <tr>
            <td>本科专业</td>
            <td colspan="2"><?php echo $detail_row['bkzy']; ?></td>
        </tr>
        <tr>
            <td>本科专业类别</td>
            <td colspan="2"><?php echo $detail_row['zylb']; ?></td>
        </tr>
        <tr>
            <td>学历证书编号</td>
            <td colspan="2"><?php echo $detail_row['xlzs']; ?></td>
        </tr>
        <tr>
            <td>学位证书编号</td>
            <td colspan="2"><?php echo $detail_row['xwzs']; ?></td>
        </tr>
        <tr>
            <td>学历证书图片</td>
            <td colspan="2"><img src="<?php echo '/' . $detail_row['xlzsphoto']; ?>" /></td>
        </tr>
        <tr>
            <td>学位证书图片</td>
            <td colspan="2"><img src="<?php echo '/' . $detail_row['xwzsphoto']; ?>" /></td>
        </tr>
        <tr>
            <td>报考第二学士学位专业</td>
            <td colspan="2"><?php echo $detail_row['speciality']; ?></td>
        </tr>
        <tr>
            <td>注册时间</td>
            <td colspan="2"><?php echo date("Y-m-d H:i:s",$detail_row['time']) ?></td>
        </tr>
        <tr>
            <td>操作</td>
            <td colspan="2">
                <a href="control.php?action=studentspass&id=<?php echo $detail_row['id']; ?>&point=61">通过</a>
                <a href="control.php?action=studentspass&id=<?php echo $detail_row['id']; ?>&point=59">不通过</a>
                <form method="post" action="control.php?action=disable&id=<?php echo $detail_row['id']; ?>">
                    <input type="text" name="why" placeholder="不通过请说明缘由" value="<?php echo $detail_row['why']; ?>">
                    <input type="submit" value="提交">
                </form>
            </td>
        </tr>
    </table>
</div>

<?php include('bottom.php'); ?>